import request from '@/utils/request'

export function getMerchantManagements(params) {
  return request({
    url: '/vue-element-admin/get/merchantManagements',
    method: 'get',
    params
  })
}

export function setMerchantManagement(data) {
  return request({
    url: '/vue-element-admin/setMerchantManagement',
    method: 'post',
    data
  })
}
export function addMerchantManagement(params) {
  return request({
    url: '/vue-element-admin/add/merchantManagement',
    method: 'get',
    params
  })
}

export function getMerchantManagementById(params) {
  return request({
    url: '/vue-element-admin/getMerchantManagementById',
    method: 'get',
    params
  })
}
// export function saveCommodity(data) {
//   return request({
//     url: '/vue-element-admin/saveCommodity',
//     method: 'post',
//     data
//   })
// }

